/**
 * @Title: FileSystemInfo.java
 * @Package: com.itic.appbase.applications.monitor.vo
 * @author: idong
 * @date: May 25, 2015 10:34:12 AM
 * @version: V1.0
 */

package com.itic.appbase.applications.monitor.vo;

/**
 * <p>
 * Company: itic
 * </p>
 * 
 * @author: idong
 * @date: May 25, 2015 10:34:12 AM
 * @version: V1.0
 */
public class FileSystemInfo
        implements Comparable<FileSystemInfo> {
    private String fsName;
    private String fsDir;
    private String fsTotal;
    private String fsUsed;
    private String fsFree;

    /**
     * @Title: FileSystemInfo
     * @param
     * @throws
     */

    public FileSystemInfo() {
        super();
    }

    /**
     * @Title: FileSystemInfo
     * @param fsName
     * @param fsDir
     * @param fsTotal
     * @param fsUsed
     * @param fsFree
     * @throws
     */

    public FileSystemInfo(String def) {
        super();
        this.fsName = def;
        this.fsDir = def;
        this.fsTotal = def;
        this.fsUsed = def;
        this.fsFree = def;
    }

    /**
     * @return the fsName
     */
    public String getFsName() {
        return fsName;
    }

    /**
     * @param fsName
     *            the fsName to set
     */
    public void setFsName(String fsName) {
        this.fsName = fsName;
    }

    /**
     * @return the fsDir
     */
    public String getFsDir() {
        return fsDir;
    }

    /**
     * @param fsDir
     *            the fsDir to set
     */
    public void setFsDir(String fsDir) {
        this.fsDir = fsDir;
    }

    /**
     * @return the fsTotal
     */
    public String getFsTotal() {
        return fsTotal;
    }

    /**
     * @param fsTotal
     *            the fsTotal to set
     */
    public void setFsTotal(String fsTotal) {
        this.fsTotal = fsTotal;
    }

    /**
     * @return the fsUsed
     */
    public String getFsUsed() {
        return fsUsed;
    }

    /**
     * @param fsUsed
     *            the fsUsed to set
     */
    public void setFsUsed(String fsUsed) {
        this.fsUsed = fsUsed;
    }

    /**
     * @return the fsFree
     */
    public String getFsFree() {
        return fsFree;
    }

    /**
     * @param fsFree
     *            the fsFree to set
     */
    public void setFsFree(String fsFree) {
        this.fsFree = fsFree;
    }

    /*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "FileSystemInfo [fsName=" + fsName + ", fsDir=" + fsDir + ", fsTotal=" + fsTotal + ", fsUsed=" + fsUsed
                + ", fsFree=" + fsFree + "]";
    }

    /*
     * (non-Javadoc)
     * 
     * @see java.lang.Comparable#compareTo(java.lang.Object)
     */
    @Override
    public int compareTo(FileSystemInfo o) {
        FileSystemInfo fso = o;
        return this.fsName.compareTo(fso.getFsName());
    }

    @Override
    public boolean equals(Object obj) {
        return this.equals(obj);
    }

    @Override
    public int hashCode() {
        return this.hashCode();
    }
}
